package com.recharge.core.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 上游回调表
 * </p>
 *
 * @author Reagan
 * @since 2020-09-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("business_provider_callback")
public class ProviderCallbackEntity implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 流水号
     */
    @TableField("serial_number")
    private String serialNumber;

    @TableField("provider_order_no")
    private String providerOrderNo;

    @TableField("create_date")
    private Date createDate;

    @TableField("modifi_date")
    private Date modifiDate;

    @TableField("provider_id")
    private String providerId;

    @TableField("voucherNo")
    private String voucherNo;

    @TableField("order_no")
    private String orderNo;

    /**
     * -1 失败 0 未处理 1 成功
     */
    @TableField("status")
    private Integer status;

    @TableField(updateStrategy = FieldStrategy.NEVER)
    private Integer nodeName;

    @TableField("is_sync")
    private Integer isSync;

    @Override
    public String toString() {
        return "ProviderCallbackEntity{" +
                "id='" + id + '\'' +
                ", serialNumber='" + serialNumber + '\'' +
                ", providerOrderNo='" + providerOrderNo + '\'' +
                ", createDate=" + createDate +
                ", modifiDate=" + modifiDate +
                ", providerId='" + providerId + '\'' +
                ", status=" + status +
                ", nodeName=" + nodeName +
                ", isSync=" + isSync +
                '}';
    }
}
